package com.quwan.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.quwan.entity.TCircleFollow;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Param;

/**
*
*
* @author quan
* @date 2022-03-21 14:26
*/
 

public interface TCircleFollowMapper extends BaseMapper<TCircleFollow> {
    @Insert("insert into t_circle_follow(id,status,m_id,circle_id)" +
            "values (#{id},#{status},#{mId},#{circleId})" +
            "ON duplicate key update status =#{status} ")
    Integer followOrCancel(@Param("id") String id, @Param("mId") String mId, @Param("circleId") String circleId, @Param("status") Integer status);
}